<?php

namespace app\home\controller\ai;

use app\common\controller\BaseController;
use hg\apidoc\annotation as Apidoc;
use app\common\service\ai\SystemConfigService;

/**
 * @Apidoc\Title("充值中心管理")
 * @Apidoc\Group("ai")
 * @Apidoc\Sort("300")
 */
class Recharge extends BaseController {

    /**
     * @Apidoc\Title("充值金额")
     * @Apidoc\Returned(ref="app\common\model\ai\SystemConfigModel", children={
     *   @Apidoc\Returned(ref="app\common\model\ai\SystemConfigModel", field="name,value"),
     * })
     */
    public function getConfig() {
        $result = SystemConfigService::getDetail('RECHARGE_AMOUNT', 'name,value');
        return success($result);
    }

}
